package com.ailang.aiskand

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.ailang.aiskand.databinding.ActivityStartBinding
import com.ailang.aiskand.ui.MainActivity
import com.hzjh.base.ext.frame.JHBaseActivity
import com.hzjh.base.ext.frame.JHBaseVM
import com.hzjh.base.utils.other.CommUtils

class StartActivity : JHBaseActivity<ActivityStartBinding,JHBaseVM>() {
    override fun initData() {
        CommUtils.getHandler().postDelayed({
            goHome()
        },2000)
    }

    override fun initView() {
    }

    private fun goHome(){
        val intent = Intent(this, MainActivity::class.java)
        startActivity(intent)
        overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out)
        finish()
    }

    override fun initViewBinding(): ActivityStartBinding {
        return ActivityStartBinding.inflate(layoutInflater)
    }
}